//
//  HomepageCollectionViewCell.m
//  Frame
//
//  Created by 这是工作本 on 16/2/20.
//  Copyright © 2016年 这是工作本. All rights reserved.
//

#import "HomepageCollectionViewCell.h"

@implementation HomepageCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
    }
    return self;
}


- (void)createSubViews
{
    
    UIImageView *view = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,100 * ScreenWidth, 100 * ScreenHeigth)];
    view.image = [[UIImage imageNamed:@"图层-57@2x.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    [self.contentView addSubview:view];
    
    UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(view.frame.origin.x + 17 * ScreenWidth, view.frame.origin.y + view.frame.size.height, 100 * ScreenWidth, 20 * ScreenHeigth)];
    title.textColor = [UIColor colorWithRed:30 / 255.0 green:30 / 255.0 blue:30 / 255.0 alpha:1.0];
    title.font = [UIFont systemFontOfSize:10.0 * ScreenWidth];
    title.text = @"NBA最伟大的球星";
    [self.contentView addSubview:title];

    
    
}

@end
